package com.note.service.impl;

import com.note.dao.UserConsumptionMapper;
import com.note.entity.UserConsumption;
import com.note.service.UserConsumptionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by XQ on 2017/6/19.
 */
@Service("UserConsumption")
public class UserConsumptionServiceImpl implements UserConsumptionService {
    @Autowired
    UserConsumptionMapper userConsumptionMapper;

    @Override
    public void addOneRecord(UserConsumption userConsumption) {
        userConsumptionMapper.insert(userConsumption);
    }
}
